<?php
declare (strict_types = 1);

namespace app\validate;

use think\Validate;

class Refund extends Validate
{
    /**
     * 定义验证规则
     * 格式：'字段名' =>  ['规则1','规则2'...]
     *
     * @var array
     */
    protected $rule =   [
        'order_id'  => 'require',
        'refund_price'   => 'require',
        'refund_reason_wap_explain' => 'require',
        'refund_reason_wap_img' => 'require',
        'refund_reason_wap' => 'require',
    ];

    protected $message  =   [
        'order_id.require' => '退款单号必须',
        'refund_price.require' => '退款价钱必须',
        'refund_reason_wap_explain.require' => '退款说明必须',
        'refund_reason_wap_img.require' => '退款图片必须',
        'refund_reason_wap.require' => '前台退款原因必须',
    ];
}
